package com.study.ibatis.io.session;

import com.study.ibatis.io.cfg.Configuration;

public class DefaultSqlSessionFactory implements SqlSessionFactory {
    private Configuration defaultConfig;
    public DefaultSqlSessionFactory(Configuration configuration){
        defaultConfig=configuration;
    }
    public SqlSession openSession() {
        return new DefaultSqlSession(defaultConfig);
    }
}
